package cqrtplm.dto.thirdPartyAPI;

import cqrtplm.dto.RtCfgDspfDemandMainQueryDTO;
import lombok.Data;

import java.util.Arrays;
import java.util.List;

/**
 * @description: MOM订单查询请求参数实体类
 * @author: zhengxiong.jiang
 * @createDate: 2025-11-01
 * @version: 1.0
 */
@Data
public class RestAdapterMomOrderDTO {

    private List<String> carveEncode;

    private List<String> itemCode;

    private List<String> produceState;

    private List<String> soNumber;

    private List<String> soLineNum;

    public RestAdapterMomOrderDTO(){

    }

    public RestAdapterMomOrderDTO(RtCfgDspfDemandMainQueryDTO dto){
        this.itemCode = Arrays.asList(dto.getmBomCode().split(","));
    }

}
